package com.guo.mapper;

import com.guo.entity.Movie;
import com.guo.query.MovieQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface MovieMapper {

     List<Movie> queryAll();

     Movie queryById(Integer id);

     int updateById(Movie movie);

     int deleteById(Integer id);

     int insert(Movie movie);
    //高级分页查询
     List<Movie> pageAll(MovieQuery movie);

}
